#ifndef DLG_ADDUSER_H
#define DLG_ADDUSER_H

#include <QDialog>
#include "stumysql.h"
namespace Ui {
class Dlg_addUser;
}

class Dlg_addUser : public QDialog
{
    Q_OBJECT

public:
    explicit Dlg_addUser(QWidget *parent = nullptr);
    ~Dlg_addUser();

    void setType(bool isAdd, UserInfo info = {});

private slots:
    void on_btn_save_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::Dlg_addUser *ui;
    bool m_isAdd;
    UserInfo m_info;
};

#endif // DLG_ADDUSER_H
